<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="totalPage" value="${page.totalPage }"></c:set>
<c:set var="currentPage" value="${page.currentPage }"></c:set>
<script>
	$(function(){
		$("#pageSelect").change(function(){
			var val = $(this).val();
			window.location.href="?pageNumber="+val;
		});
	});
</script>
<div style="text-align: center;">
	<div class="btn-group">
		<a class="btn btn-default pageButton ${currentPage==1?'disabled':''} " href="?pageNumber=1" title="首页"><<</a>
		<a class="btn btn-default pageButton ${currentPage==1?'disabled':''}" href="?pageNumber=${currentPage-1 }" title="上一页"><</a>
		<select name="" id="pageSelect" class="btn btn-default select">
			<c:forEach begin="1" end="${totalPage }" varStatus="status">
				<option class="pageOption " value="${status.index }" ${currentPage==status.index?'selected':'' }>${status.index }/${totalPage }</option>
			</c:forEach>
		</select>
		<a class="btn btn-default pageButton ${currentPage==totalPage?'disabled':''}" href="?pageNumber=${currentPage+1 }" title="下一页">></a>
		<a class="btn btn-default pageButton ${currentPage==totalPage?'disabled':''}" href="?pageNumber=${totalPage }" title="末页">>></a>
	</div>
</div>